/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Testes;

import bd.MySql;
import java.util.ArrayList;

/**
 *
 * @author Gabriel
 */
public class Main {

    public static void main(String args[]) {
        MySql conn = new MySql("localhost", "carnaval", "trabalhobd", "123456");

        ArrayList<ArrayList<String>> table = conn.getTable("SELECT * FROM sambodromo");

        for(int i=0;i<table.size();i++) {
            for(int j=0;j<table.get(i).size();j++) {
                System.out.printf("%s ", table.get(i).get(j));
            }
            System.out.printf("\n");
        }
    }
}
